import java.lang.reflect.Field;

/**
 * @Author AzureSky_X
 * @Date 2021/3/8 15:00
 * @Version 1.0
 */
public class FianlTest01 {
    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        String s="123";
        Field valueArray=String.class.getDeclaredField("value");
        valueArray.setAccessible(true);
        char[] array=(char[]) valueArray.get(s);
        array[0]='2';
        System.out.println(s);//223

    }
}
